package com.example.mybatisdemo.controller;

import com.example.mybatisdemo.mapper.UserInfoMapper;
import com.example.mybatisdemo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/user")
@RestController
public class UserInfoController {
    @Autowired//是从spring中拿出对象,不一定是要和某一个注解对应,只要是要拿出对象,就用这个
    private UserInfoMapper userInfoMapper;


}
